package com.oocl.o2o.merchant.entity;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

@Embeddable
public class OrderItem {
	@OneToOne
	@JoinColumn(name="food_id",columnDefinition="char(32)")
	private Food food;
	private Integer total;
	private Double subTotalMoney;
	public OrderItem() {
	}

	public OrderItem(Food food, Integer total) {
		this.food = food;
		this.total = total;
	}
	public Food getFood() {
		return food;
	}
	public void setFood(Food food) {
		this.food = food;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Double getSubTotalMoney() {
		return subTotalMoney;
	}

	public void setSubTotalMoney(Double subTotalMoney) {
		this.subTotalMoney = subTotalMoney;
	}
	
	
	
}
